import React from 'react';

export const CustomImage = (props: React.ImgHTMLAttributes<HTMLImageElement>) => {
    const { src, alt } = props;
    return (
        <span className='text-center py-1 block'>
            <img
                src={src}
                alt={alt}
                className="shadow-lg rounded-sm mx-auto"
            />
            <em className='text-sm text-gray-500'>{alt}</em>
        </span>
    );
};
